﻿<%@ Page Language="C#" MasterPageFile="~/Company/MasterPage.master" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="Company_UserList" Title="无标题页" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ext:Store ID="Store1" OnRefreshData="Store1_OnRefreshData" runat="server">
    <Reader>
        <ext:JsonReader ReaderID="companyid">
            <Fields>
                <ext:RecordField Name="companyid" Type="Int"></ext:RecordField>
                <ext:RecordField Name="companyname" Type="String"></ext:RecordField>
                <ext:RecordField Name="tradename" Type="String"></ext:RecordField>
                <ext:RecordField Name="electricname" Type="String"></ext:RecordField>
                <ext:RecordField Name="scores" Type="Int"></ext:RecordField>
                <ext:RecordField Name="credit" Type="String"></ext:RecordField>
            </Fields>
        </ext:JsonReader>
    </Reader>
    <AutoLoadParams>
         <ext:Parameter Name="start" Mode="Raw" Value="0" />
         <ext:Parameter Name="limit" Mode="raw" Value="10" />
     </AutoLoadParams> 
    </ext:Store>
    <ext:Store ID="Store2" runat="server">
    <Reader>
        <ext:JsonReader ReaderID="uid">
            <Fields>
                <ext:RecordField Name="uid" Type="Int"></ext:RecordField>
                <ext:RecordField Name="username" Type="String"></ext:RecordField>
            </Fields>
        </ext:JsonReader>
    </Reader>
    </ext:Store>
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:ColumnLayout ID="ColumnLayout1" runat="server" Split="true" FitHeight="true">
                <Columns>
                 <ext:LayoutColumn ColumnWidth="0.50">
                     <ext:Panel ID="Panel9" runat="server">
                         <Body>
                    <ext:GridPanel ID="GridPanel1" Height="500" StoreID="Store1" runat="server">
                    <ColumnModel>
                        <Columns>
                            <ext:Column ColumnID="companyid"  Header="户号" DataIndex="companyid" ></ext:Column>
                            <ext:Column ColumnID="companyname" Header="户名" DataIndex="companyname"></ext:Column>
                            <ext:Column ColumnID="tradename" Header="行业类别" DataIndex="tradename"></ext:Column>
                            <ext:Column ColumnID="electricname" Header="用电类别" DataIndex="electricname"></ext:Column>
                            <ext:Column ColumnID="scores" Header="信用分数" DataIndex="scores"></ext:Column>
                            <ext:Column ColumnID="credit" Header="信用等级" DataIndex="credit"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
                            <AjaxEvents>
                                <RowSelect OnEvent="RowSelect" Buffer="250">
                                    <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{FormPanel1}" />
                                    <ExtraParams>
                                        <%-- or can use params[2].id as value --%>
                                        <ext:Parameter Name="companyid" Value="this.getSelected().id" Mode="Raw" />
                                    </ExtraParams>
                                </RowSelect>
                            </AjaxEvents>
                        </ext:RowSelectionModel>
                    </SelectionModel>
                    <BottomBar>
                        <ext:PagingToolBar 
                            ID="PagingToolBar1" 
                            runat="server" 
                            PageSize="10" 
                            StoreID="Store1" 
                            />
                    </BottomBar>
                    </ext:GridPanel>
                    
                         </Body>
                     </ext:Panel>
                </ext:LayoutColumn>
                    
                    <ext:LayoutColumn ColumnWidth="0.50">
                        <ext:Panel ID="Panel10" runat="server" AutoHeight="true" AutoScroll="true">
                            <Body>
                    <ext:FormPanel AutoScroll="true"  AutoHeight="true" ID="FormPanel1" runat="server" BodyStyle="padding:5px;" 
                        Frame="true"  >
                        <Body>
                            <ext:ContainerLayout ID="ContainerLayout1" runat="server">
                            
                                <ext:Panel ID="Panel1" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="用电客户">
                                    <Body>
                                    <ext:Hidden ID="tfid" runat="server"></ext:Hidden>
                                    <ext:Hidden ID="tfcompanyname2" runat="server"></ext:Hidden>
                                    
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >户号:</td>
                                            <td style="text-align:left;"><ext:Label ID="tfcompanyid" runat="server"></ext:Label> </td>
                                        </tr>
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >户名:</td>
                                            <td style="text-align:left;"><ext:Label ID="tfcompanyname" runat="server"></ext:Label> </td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                                <ext:Panel ID="Panel2" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="欠费">
                                    <Body>
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >时间:</td>
                                            <td style="text-align:left;"><ext:DateField runat="server" ID="tfunfee_time"></ext:DateField> </td>
                                        </tr>
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >金额:</td>
                                            <td style="text-align:left;"> 
                                                <ext:NumberField ID="tfunfee_cash"   runat="server">
                                                </ext:NumberField> </td>
                                        </tr>
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >情况说明:</td>
                                            <td style="text-align:left;"> 
                                                <ext:TextArea Width="350" runat="server" ID="tfunfee_detail"></ext:TextArea> </td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                                <ext:Panel ID="Panel3" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="窃电">
                                    <Body>
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >时间:</td>
                                            <td style="text-align:left;"><ext:DateField runat="server" ID="tfthief_time1"></ext:DateField>~<ext:DateField runat="server" ID="tfthief_time2"></ext:DateField> </td>
                                        </tr>
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >金额:</td>
                                            <td style="text-align:left;"> 
                                                <ext:NumberField ID="tfthief_cash"   runat="server">
                                                </ext:NumberField> </td>
                                        </tr>
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >情况说明:</td>
                                            <td style="text-align:left;"> 
                                                <ext:TextArea Width="350" runat="server" ID="tfthief_detail"></ext:TextArea> </td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                                <ext:Panel ID="Panel4" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="不配合错峰">
                                    <Body>
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >时间:</td>
                                            <td style="text-align:left;"><ext:DateField runat="server" ID="tfuncoop_peak_time"></ext:DateField></td>
                                        </tr> 
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >情况说明:</td>
                                            <td style="text-align:left;"> 
                                                <ext:TextArea Width="350" runat="server" ID="tfuncoop_peak_detail"></ext:TextArea> </td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                                <ext:Panel ID="Panel5" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="不配合限电">
                                    <Body>
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >时间:</td>
                                            <td style="text-align:left;"><ext:DateField runat="server" ID="tfuncoop_limit_time"></ext:DateField></td>
                                        </tr> 
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >情况说明:</td>
                                            <td style="text-align:left;"> 
                                                <ext:TextArea Width="350" runat="server" ID="tfuncoop_limit_detail"></ext:TextArea> </td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                                <ext:Panel ID="Panel6" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="其他不良行为">
                                    <Body>
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >情况说明:</td>
                                            <td style="text-align:left;"> 
                                                <ext:TextArea Width="350" runat="server" ID="tfuncoop_others"></ext:TextArea> </td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                                <ext:Panel ID="Panel8" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="附件">
                                    <Body>
                                    <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td><ext:FileUploadField runat="server" ID="tffileupload" Icon="Attach"></ext:FileUploadField></td>
                                        </tr>
                                        <tr>
                                            <td>附件仅支持支持.zip和.rar文件格式，大小不能超过5M。否则不能上传成功，请提交请仔细检查，谢谢！</td>
                                        </tr>
                                    </table>         
                                    </Body>
                                </ext:Panel>
                          <ext:Panel ID="Panel7" runat="server" AutoHeight="true" Collapsed="true"  FormGroup="true" Title="发送至领导">
                                 <Body>
                                <table border="0" width="100%" cellpadding="10" cellspacing="10">
                                        <tr>
                                            <td style="width:150px; vertical-align:top;text-align:right;" >领导:</td>
                                            <td style="text-align:left;">
                                            <ext:ComboBox ID="tfdept_master_id" runat="server"
                                                 DisplayField="username" ValueField="uid" Editable="false" StoreID="Store2"></ext:ComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                           
                                            </td>
                                        </tr>
                                    </table> 
                                    </Body> 
                                    </ext:Panel>
                             
                            </ext:ContainerLayout>
                        </Body>
                        <Buttons>
                        <ext:Button ID="BTNSubmit" runat="server" Text="提交" Icon="DiskBlack">
                                                <AjaxEvents>
                                                    <Click OnEvent="SubForm">
                                                        <EventMask  ShowMask="true" Target="CustomTarget" CustomTarget="#{FormPanel1}"  Msg="提交中..." MinDelay="2000"/>
                                                    </Click>
                                                </AjaxEvents>
                                            </ext:Button>
                        </Buttons>
                    </ext:FormPanel>
                    
                            </Body>
                        </ext:Panel>
                 </ext:LayoutColumn>
                 </Columns>
            </ext:ColumnLayout>
        </Body>
    </ext:ViewPort>
</asp:Content>

